package com.wwz.feign;

import com.wwz.pojo.Charge;
import com.wwz.pojo.Personnel;
import com.wwz.pojo.query.ChargeQuery;
import com.wwz.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("manage")
public interface ChargeClients {

    @GetMapping("/manage/charge/toPage")
    Result toPage(@SpringQueryMap ChargeQuery query);

    @PostMapping("/manage/charge/addOrUpdate")
    Result addOrUpdate(Charge charge);

    @DeleteMapping("/manage/charge/delete/{id}")
    Result delete(@PathVariable("id") String id);
}
